/*
test for nothing....
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>

#include <interface.h>


char keys[15][512]={"bb","aa","yy","xx","zz","hello","hell","hill","hum", "hehe", "hoho", "huhu", "hehehe", "hihihi","hub"};
char values[15][512]={"bbbb","aaaa","yyyy","xxxx","zzzz","hellohello","hellhell","hillhill","humhum", "hehehehe", "hohohoho", "huhuhuhu", "hehehehehehe", "hihihihihihi","hubhub"};

int main()
{
	char config_file[512];
	char buf[1024];
	int i;

	printf ("config_file:");
	scanf ("%s", config_file);

	kv_init(config_file);
	for (i=0; i<15; i++)  kv_put( keys[i], strlen(keys[i]), values[i], strlen(values[i]) );
	for (i=0; i<15; i++) 
	{
		kv_get( keys[i], strlen(keys[i]), buf, 1024 );
		printf ("GET:%s  \t:\t%s\n",keys[i], buf);
	}

//	for (i=0; i<15; i++)  kv_delete( keys[i], strlen(keys[i]));

	printf ("exiting...\n");
	kv_exit();
	return 0;
}


